package inherit;

/**
 * @author : niu niu
 * @version : 1.0.0
 * @date : 2022/9/9 21:35
 * 父类 动物类
 */
public class Animal {
     String name;
     int age;
     double weight;

    void sleep(){
        System.out.println(this.name+ "正在睡觉");
    }
    void eat(String food){
        System.out.println(this.name+"正在吃"+food);
    }
}
